<template>
       <el-radio-group v-model="radio1" size="medium" class="chenggroup" >
                <el-radio-button class="chengradio" label="周年格式" ></el-radio-button>
                <el-radio-button class="chengradio" label="年周格式" ></el-radio-button>
                <el-radio-button class="chengradio" label="年月格式" ></el-radio-button>
                <el-radio-button class="chengradio" label="不需要" ></el-radio-button>
        </el-radio-group>
</template>

<script>


export default {
     data() {
       return {
        i:this.$myF.arrIndex(this.$store.state.data.pcbInfo,"板内增加生产周期：")
       };
     },
         computed: {
      //用vuex实现，兄弟组件改变自己的值的方法，通过客户单位的改变，来判断过孔属性
      //get 数据的来源
      //set 里面是V是操作组件后返回的V值
        radio1: {
         get: function(){ return this.$store.state.data.pcbInfo[this.i].pcbpara},
         set:function(v){ this.$store.state.data.pcbInfo[this.i].pcbpara=v }
        }
     }
}
</script>

<style>

@import "./css/radio.css";

</style>